Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Required Scripting Component Routines / Manipulating the Active Function


OSAGetActiveProc

You can use the OSAGetActiveProc function to get a pointer to the active function that a scripting component is currently using.

FUNCTION OSAGetActiveProc(scriptingComponent: ComponentInstance;
                          VAR activeProc: OSAActiveProcPtr;
                          VAR refCon: LongInt): OSAError;
scriptingComponent

A component instance created by a prior call to the Component Manager function OpenDefaultComponent or OpenComponent (see page 10-4).
activeProc
The OSAGetActiveProc function returns in this parameter a pointer to the active function currently set for the specified scripting component.
refCon
The OSAGetActiveProc function returns in this parameter the reference constant associated with the active function for the specified scripting component.
RESULT CODES
noErr0No error
errOSASystemError-1750General scripting system error
badComponentInstance$80008001Invalid component instance

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help